import request from '@/utils/request'

// 查询船舶信息列表
export function listShip(query) {
  return request({
    url: '/basicInformation/ship/list',
    method: 'get',
    params: query
  })
}

// 查询船舶信息详细
export function getShip(id) {
  return request({
    url: '/basicInformation/ship/' + id,
    method: 'get'
  })
}

// 新增船舶信息
export function addShip(data) {
  return request({
    url: '/basicInformation/ship',
    method: 'post',
    data: data
  })
}

// 修改船舶信息
export function updateShip(data) {
  return request({
    url: '/basicInformation/ship',
    method: 'put',
    data: data
  })
}

// 删除船舶信息
export function delShip(id) {
  return request({
    url: '/basicInformation/ship/' + id,
    method: 'delete'
  })
}

// 导出船舶信息
export function exportShip(query) {
  return request({
    url: '/basicInformation/ship/export',
    method: 'get',
    params: query
  })
}

// 下载用户导入模板
export function importTemplate() {
  return request({
    url: '/basicInformation/ship/importTemplate',
    method: 'get'
  })
}

export function unBundling(query) {
  return request({
    url: '/basicInformation/ship/unBundling',
    method: 'post',
    data: query
  })
}

